// index.js
import Vue from 'vue'
import Vuex from 'vuex'
// import state from './state.js'

const state = {
  contentTemp: 'hello World'
}

const mutations = {
  SET_CONTENT (state, data) {
    state.contentTemp = data
  }
}

Vue.use(Vuex)

export default new Vuex.Store({
  state,
  mutations
})
